//导入路由模块
import VueRouter from 'vue-router'

//导入登录及注册页面
import login from '../account/login.vue'
import register from '../account/register.vue'
//导入登录页面的子组件
import login1 from '../login/login1.vue'
import login2 from '../login/login2.vue'

//创建路由对象
var routerObj = new VueRouter({
    //配置组件与路由的对应关系
    routes:[
        {
            path:'/login',
            component:login,
            children:[
                {path:'/login1',component:login1},
                {path:'/login2',component:login2}
            ]
        },
        { path:'/register', component: register }
        
   
    ]
})
export default routerObj